home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem -------------------------------------------------------------
- rem Name : COPYSERV.BAT
- rem Purpose : Copies NT service executables. Before copying,
- rem turns off services. After copying, turns services
- rem back on.
- rem Usage : COPYSERV %1 %2 %3 %4
- rem %1 - Source dir
- rem %2 - Dest dir
- rem %3 - if "1", then copy wacomkey.exe
- rem %4 - if "1", then copy wintab32.exe
- rem Notes : Both wacomkey and wintab32 services need to be stopped.
- rem The copy fails if MSSETUP copy functions are used. The
- rem services must be stopped/started from a DOS box. It
- rem fails if done from the control panel.
- rem Author : Jim Choate
- rem History : 5/30/96. Created.
- rem ------------------------------------------------------------
-
- echo Copying NT Services. This takes a few minutes...
-
- net stop wacomkey
- net stop wintab32
-
- if not "%3"=="1" goto Skip1
-
- del %2wacomkey.exe
- ren %2wacomkey.tmp wacomkey.exe
-
- :Skip1
-
- if not "%4"=="1" goto Skip2
-
- del %2wintab32.exe
- ren %2wintab32.tmp wintab32.exe
-
- :Skip2
-
- net start wintab32
- net start wacomkey
-